﻿// This code is released under the BSD license.
namespace PugLib.UnitTest
{
    #region

    using Extensions;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    #endregion

    /// <summary>
    ///This is a test class for StringsExtensionsTest and is intended
    ///to contain all StringsExtensionsTest Unit Tests
    ///</summary>
    [TestClass]
    public class StringsExtensionsTest
    {
        /// <summary>
        ///A test for Start
        ///</summary>
        [TestMethod]
        public void StartTest()
        {
            const string input = "abc";
            const int length = 2;
            const string expected = "ab";
            string actual = input.Start(length);
            Assert.AreEqual(expected, actual);
        }


        /// <summary>
        ///A test for GetCryptoHash
        ///</summary>
        [TestMethod]
        public void GetCryptoHashTest()
        {
            "abcd".GetCryptoHash();
        }
    }
}